﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyBBS.Data.Models;


namespace MyBBS.Data.Filters
{
    public static class CategoryFilter
    {
        public static Category WithIDEquals(this IQueryable<Category> categories, long categoryID)
        {
            return categories.Single(c => c.ID == categoryID);
        }
    }
}
